import request from '@/utils/request';

//获取运费模板列表
export async function fetchListExpressTemplate(params) {
    return request('/common/expressTemplate/listExpressTemplate', {
        params,
    });
}
//删除运费模板
export async function fakeDeleteExpressTemplate(data) {
    return request('/common/expressTemplate/deleteExpressTemplate', {
        method: 'post',
        data,
    });
}
//保存运费模板
export async function fakeSaveExpressTemplate(data) {
    return request('/common/expressTemplate/saveExpressTemplate', {
        method: 'post',
        data,
    });
}


//获取发货记录
export async function fetchListExpress(params) {
    return request('/express/listExpress', {
        params,
    });
}
//发货
export async function fakeSendExpress(data) {
    return request('/express/sendExpress', {
        method: 'post',
        data,
    });
}


//获取快递公司列表
export async function fetchListExpressCompany(params) {
    return request('/common/expressCompany/listExpressCompany', {
        params,
    });
}
